package service;

import domain.Book;

import java.sql.SQLException;
import java.util.List;

/**
 * 书本实体类的业务逻辑层
 */
public interface IBookService {
    /**
     * 查询所有的书籍数据
     * @return
     */
    List selectBooks();

    /*
     *新增图书
     */
    int insertBook(Book book) throws SQLException;


    //删除图书
    String deleteBook(String num);
    //修改图书
    int updateBook(Book book) throws SQLException;
    //借阅图书
    int updateBookState(Book book) throws SQLException;
    //归还图书
    int returnBookState(Book book) throws SQLException;
}
